package com.example.mylibrarybase.yumengmeng04.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.mylibrarybase.R;
import com.example.mylibrarybase.base.baseui.BaseActivity;


public class MainActivity extends BaseActivity implements View.OnClickListener {

    @Override protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        findViewById(R.id.main_listview_simple_tv).setOnClickListener(this);
        findViewById(R.id.main_listview_tv).setOnClickListener(this);
        findViewById(R.id.main_recyclerview_simple_tv).setOnClickListener(this);
        findViewById(R.id.main_recyclerview_tv).setOnClickListener(this);
    }

    @Override
    public int getlayouXML() {
        return R.layout.activity_main_04_2;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

    @Override public void onClick(View v) {
        int i = v.getId();
        if (i == R.id.main_listview_simple_tv) {
            startActivity(new Intent(this, ListViewSimpleActivity.class));

        } else if (i == R.id.main_listview_tv) {
            startActivity(new Intent(this, ListViewActivity.class));

        } else if (i == R.id.main_recyclerview_simple_tv) {
            startActivity(new Intent(this, RecyclerViewSimpleActivity.class));

        } else if (i == R.id.main_recyclerview_tv) {
            startActivity(new Intent(this, RecyclerViewActivity.class));

        }
    }
}
